/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package org.kz.shange.models;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 *
 * @author Administrator
 */
@Document(collection="Author")
public class Author {
    @Id
    String id;
    @Indexed(unique = true)
    String account;
    String password;
    String name;
    String picUrl;
    String motto;   //座右铭, 箴言
    int privilege=1;  //特权

    @Override
    public String toString() {
        return "Author{" + "id=" + id + ", name=" + name + ", picUrl=" + picUrl + ", motto=" + motto + '}';
    }

//<editor-fold defaultstate="collapsed" desc="property">
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public int getPrivilege() {
        return privilege;
    }

    public void setPrivilege(int privilege) {
        this.privilege = privilege;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getName() {
        return name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    
    public String getPicUrl() {
        return picUrl;
    }
    
    public void setPicUrl(String picUrl) {
        this.picUrl = picUrl;
    }
    
    public String getMotto() {
        return motto;
    }
    
    public void setMotto(String motto) {
        this.motto = motto;
    }
//</editor-fold>
    
}
